<div id="content" class="clearfix">
  <h3><?php echo $this->title;?></h3>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'method'=>'get',
	'action'=>$this->createUrl('manager/notice'),
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>
    <div class="section">
      <h4 class="heading_bg">查询条件</h4>
      <!--      <h5>合约销售查询</h5>-->
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal">
        <!-- <tr>
          <th class="tleft"><?php echo $form->label($model,'start_date'); ?></th>
          <td>
          	<?php   
			$this->widget('zii.widgets.jui.CJuiDatePicker',array(  
			    'attribute'=>'start_date',  
			    'language'=>'zh_cn',  
			    'model'=>$model,  
			    'options'=>array(  
			        'showAnim'=>'fold',
			        //'minDate'=>'new Date()',  
			        'dateFormat'=>'yy-mm-dd',  
			    ),
			));  
			?> 
          </td>
          <th class="tleft"><?php echo $form->label($model,'end_date'); ?></th>
          <td>
          	<?php   
			$this->widget('zii.widgets.jui.CJuiDatePicker',array(  
			    'attribute'=>'end_date',  
			    'language'=>'zh_cn',  
			    'model'=>$model,  
			    'options'=>array(  
			        'showAnim'=>'fold',
			        //'minDate'=>'new Date()',  
			        'dateFormat'=>'yy-mm-dd',  
			    ),
			));  
			?> 
          </td>
        </tr> -->
		<tr>
          <th class="tleft"><?php echo $form->label($model,'title'); ?></th>
          <td colspan="3">            
            <?php echo $form->textField($model,'title',array('size'=>50,)); ?>
            <?php echo $form->error($model,'title'); ?>
          </td>
        </tr>
      </table>
      <p class="inquiry">
      	<?php echo CHtml::submitButton('查询',array('class'=>'btn',))?>
      	<?php echo CHtml::resetButton('重置',array('class'=>'btn'))?>
      </p>
      <!--div.section -->
    </div>
    <div class="section">
      <h4 class="heading_bg">查询结果</h4>
      	<?php $this->widget('zii.widgets.grid.CGridView', array(
			'dataProvider'=>$dataProvider,
			//'filter'=>$model,
			'summaryCssClass' => 'summary1',
			'pagerCssClass'=>'pager1',
			'pager'=>array(
				'header'=>'',
				),
			'columns'=>array(
				array(
					'name'=>'create_time',
                    'value'=>'$data->create_time',
                    'htmlOptions'=>array('nowrap'=>'nowrap'),
                    'headerHtmlOptions'=>array('nowrap'=>'nowrap'),
				),
				array(
					'name'=>'title',
                    'value'=>'$data->title',
                    'htmlOptions'=>array('nowrap'=>'nowrap'),
                    'headerHtmlOptions'=>array('nowrap'=>'nowrap'),
                    //'header'=>'日期'
				),
				array(
                    'value'=>'$data->staff_id',
                    'header'=>'发起人',
                    'htmlOptions'=>array('nowrap'=>'nowrap'),
                    'headerHtmlOptions'=>array('nowrap'=>'nowrap'),
				),

				array(
					'class'=>'CButtonColumn',
					'htmlOptions'=>array('nowrap'=>'nowrap'),
					'headerHtmlOptions'=>array('nowrap'=>'nowrap'),
					'header'=>'操作',
					'template'=>'{delete}',
					'deleteButtonLabel'=>'删除',
					'deleteButtonImageUrl'=>false,
					'deleteButtonUrl'=>'"noticedelete/id/".$data->id',
				),
			), 
		)); ?>
	  <p class="inquiry">
      	<?php echo CHtml::Button('新建通知',array('class'=>'btn','onClick'=>'window.location.href=\''.$this->createUrl('manager/newnotice').'\''))?>
      </p>
      <!-- <div class="content-link"><a href="#wrapper">▲回到顶部</a></div> -->
    </div>
<?php $this->endWidget(); ?>
  <!-- div#content end -->
</div>
